/**
 * Copyright 2008 by Robert Konigsberg
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the same terms as Perl.
 *
 * @see http://www.perl.com/perl/misc/Artistic.html
 */
package visitor.client;

import visitor.maze.Maze;
import visitor.maze.NonRepeatingVisitor;
import visitor.maze.Room;

public class RoomVisitorMain {
  public static void main(String[] args) {
    Maze maze = Mazes.getFirstMaze();
    maze.getRoom(1).accept(new NonRepeatingVisitor() {
      @Override public void visit(Room room) {
        super.visit(room);
        System.out.println("In " + room.getId());
      }
    });
  }
}
